{% extends "@CoreBundle/layout/main.html.twig" %}

{% block page_title %}关于{% endblock %}

{% block page %}
<div class="row">
    <div class="col-md-12">
        <div class="card-columns">
            <div class="card">
                <header class="card-header">
                    <div class="card-title">登录记录</div>
                </header>
                <div class="card-body">
                    <div class="row">
                        {% if loginLog %}
                            {% for item in loginLog %}
                        <div class="col-sm-3">{{ item['createdAtTime'] }}</div>
                        <div class="col-sm-9">{{ item['cityName'] }}({{ item['ip'] }})</div>
                            {% endfor %}
                        {% endif %}
                    </div>
                </div>
            </div>

            <div class="card">
                <header class="card-header">
                    <div class="card-title">云服务器优惠</div>
                </header>
                <div class="card-body">
                <p><a href="https://www.aliyun.com/minisite/goods?userCode=0o5xfta6&share_source=copy_link" target="_blank">领取阿里云通用云产品优惠券</a></p>
                    <p><a href="https://curl.qcloud.com/TbmFzEfm" target="_blank">领取腾讯云通用云产品优惠券</a></p>
                </div>
            </div>
                <div class="card">
                    <header class="card-header">
                        <div class="card-title">关于项目</div>
                    </header>
                    <div class="card-body">
                        <p>eduxplus 是一款服务于教育机构、个人、小型团队的在线教育系统,可用于个人知识付费或者在线教育培训等项目使用。如果喜欢就点个星星支持一下。
                            <a target="_blank" href='https://gitee.com/huagelong/eduxplus'>
                            <img src='https://gitee.com/huagelong/eduxplus/badge/star.svg?theme=dark' alt='star'></img></a>
                        </p>
                        <p>当前版本:  <span class="badge badge-muted">{{sys["version"]}}</span></p>
                        <p>文档地址:  <a target="_blank" href="https://www.eduxplus.com">https://www.eduxplus.com</a></p>
                    </div>
                </div>
                <div class="card">
                    <header class="card-header">
                        <div class="card-title">技术交流</div>
                    </header>
                    <div class="card-body">
                        <p>问题反馈: <a target="_blank" href="https://gitee.com/huagelong/eduxplus/issues">gitee issues</a> </p>
                    </div>
                </div>
            <div class="card">
                <header class="card-header">
                    <div class="card-title">捐赠</div>
                </header>
                <div class="card-body">
                    <p>
                        <img src="/images/wechat.png" style="width: 200px;margin-right: 50px;"/>
                        <img src="/images/alipay.png" style="width: 200px;" />
                    </p>
                </div>
            </div>
            <div class="card">
                <header class="card-header">
                    <div class="card-title">环境变量</div>
                </header>
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table table-striped">
                            {% for k,v in envs %}
                                <tr>
                                    <td width="120px">{{ v["name"] }}</td>
                                    <td>{{ v["value"] }}</td>
                                </tr>
                            {% endfor %}
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
